package com.andy.qhb.entity;

import java.util.Map;

import com.andy.qhb.base.BaseUser;
import com.google.common.collect.Maps;

public class UsrUser extends BaseEntity implements BaseUser{

	private static final long serialVersionUID = 1L;

	public UsrUser() {
	}
	
	public UsrUser(Long id) {
		super(id);
	}
	
	private String userName;
	
	private String nickName;
	
	private Integer role;
	
	private Integer agent;
	
	private Long puid;
	
	private Long loginTime;
	
	private String icon;
	
	private String password;
	
	private String phone;
	
	private String zfb;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public static String table() {
		return "usr_user";
	}

	public Map<String,Object> forOther() {
		Map<String, Object> resu = Maps.newHashMap();
		resu.put("userId", getId());
		resu.put("nickName", getNickName());
		resu.put("icon", getIcon());
		return resu;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Long getPuid() {
		return puid;
	}

	public void setPuid(Long puid) {
		this.puid = puid;
	}

	public Long getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Long loginTime) {
		this.loginTime = loginTime;
	}

	public String getZfb() {
		return zfb;
	}

	public void setZfb(String zfb) {
		this.zfb = zfb;
	}

	public Integer getAgent() {
		return agent;
	}

	public void setAgent(Integer agent) {
		this.agent = agent;
	}
	
	
}
